import Layout from '@/layout'

const locationRouter =
{
  path: '/location',
  name: 'location-group',
  component: Layout,
  meta: { title: '地址管理', icon: 'nested', roles: ['m5130'] },
  children: [
    {
      path: 'location',
      component: (resolve) => require(['@/views/logistics-group/location-manage/index'], resolve),
      name: 'Location',
      remoteParam: { serviceName: 'wms', path: '/api/logistics/location/' },
      remoteUrl: '',
      meta: { title: '地址管理', roles: ['m5130'] }
    },
    {
      path: '/locationEdit/edit/:no',
      name: 'LocationEdit',
      component: (resolve) => require(['@/views/logistics-group/location-manage/edit'], resolve),
      meta: { title: '地址管理-' },
      remoteUrl: '',
      hidden: true
    }
  ]
}
export default locationRouter
